file(GLOB HEADERS "include/steem/plugins/condenser_api/*.hpp")
add_library( condenser_api_plugin
             condenser_api.cpp
             condenser_api_plugin.cpp
             condenser_api_legacy_asset.cpp
             condenser_api_legacy_operations.cpp
             condenser_api_legacy_objects.cpp
             ${HEADERS} )

target_link_libraries( condenser_api_plugin
   account_by_key_api_plugin
   account_history_api_plugin
   database_api_plugin
   block_api_plugin
   follow_api_plugin
   reputation_api_plugin
   market_history_api_plugin
   network_broadcast_api_plugin
   tags_api_plugin
   steem_utilities )
target_include_directories( condenser_api_plugin PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )

if( CLANG_TIDY_EXE )
   set_target_properties(
      condenser_api_plugin PROPERTIES
      CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
   )
endif( CLANG_TIDY_EXE )

install( TARGETS
   condenser_api_plugin

   RUNTIME DESTINATION bin
   LIBRARY DESTINATION lib
   ARCHIVE DESTINATION lib
)
install( FILES ${HEADERS} DESTINATION "include/steem/condenser_api_plugin" )
